package net.sxnic.item.duiying;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import net.sxinfo.core.entity.AbstractEntity;

/**
 * 申报年、大类、小类对应jsp页面年
 * 一般情况下 只定义大类对应的年份即可，如有特殊情况才定义小类的年份
 * @author yfsun
 *
 */
@Entity
@Table(name = "item_duiying")
@BatchSize(size = 10)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Duiying extends AbstractEntity{
	
	private static final long serialVersionUID = 6901116874420524223L;

	/**
	 * 申报年
	 */
	private String cyear;
	
	/**
	 * 大类的别名，独立定义，不能用逗号分隔
	 */
	private String cate1;
	
	/**
	 * 小类 编码，可以用逗号分隔，用以表示多个小类
	 */
	private String cate2;
	
	/**
	 * 对应年，即JSP页面所在位置
	 */
	private String dyYear;

	public Duiying() {
		super();
	}	

	public Duiying(String cyear, String cate1, String cate2, String dyYear) {
		super();
		this.cyear = cyear;
		this.cate1 = cate1;
		this.cate2 = cate2;
		this.dyYear = dyYear;
	}

	public String getCyear() {
		return cyear;
	}

	public void setCyear(String cyear) {
		this.cyear = cyear;
	}

	public String getCate1() {
		return cate1;
	}

	public void setCate1(String cate1) {
		this.cate1 = cate1;
	}

	public String getCate2() {
		return cate2;
	}

	public void setCate2(String cate2) {
		this.cate2 = cate2;
	}

	public String getDyYear() {
		return dyYear;
	}

	public void setDyYear(String dyYear) {
		this.dyYear = dyYear;
	}
}
